home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9354 < prev    next >
Encoding:
Text File  |  1996-08-05  |  823 b   |  21 lines

  1. Newsgroups: comp.lang.c
  2. Path: undergrad.math.uwaterloo.ca!jyetse
  3. From: jyetse@undergrad.math.uwaterloo.ca (Eric)
  4. Subject: Re: How do I write gets() function that checks for boundaries?
  5. Originator: jyetse@undergrad.math.uwaterloo.ca
  6. Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
  7. Message-ID: <ApcQxQpxJEXd088yn@undergrad.math.uwaterloo.ca>
  8. Date: Sat, 9 Mar 1996 18:13:20 GMT
  9. References: <313FDB9F.7455@cyberus.ca>
  10. Nntp-Posting-Host: lhopital.uwaterloo.ca
  11. Organization: University of Waterloo
  12.  
  13. In article <313FDB9F.7455@cyberus.ca>, MC <mcardinal@cyberus.ca> wrote:
  14. >I want to write my own gets() function that will check string size so that it doesn't accept more 
  15. >characters than my declared string variable.  Any ideas?
  16.  
  17.   Look up the ANSI C function fgets(). It does what you want.
  18.   Hope this helps.
  19.  
  20. Eric
  21.